<template>
  <div class="empty">
    <img :src="href" />
    <div class="empty-text">{{ emptyText }}</div>
  </div>
</template>
<script>
import empty from "@/assets/images/empty.svg";
export default {
  name: "Empty",
  props: {
    emptyText: {
      type: String,
      default: "暂无数据",
    },
  },
  data() {
    return {
      href: empty,
    };
  },
};
</script>
<style lang="scss" scoped>
.empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px 10px;
  .empty-text {
    font-size: 13px;
    line-height: normal;
    padding-top: 10px;
  }
}
</style>
